package com.ssm.springboot.service;

import com.ssm.springboot.dao.UserMapper;
import com.ssm.springboot.pojo.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author
 * @create 2018-05-25 16:43
 **/
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    UserMapper userMapper;
    @Override
    public List<Data> getList(int age) {
        return userMapper.getList(age);
    }

    @Override
    public void insert(Data data) {
        userMapper.insert(data);

    }

}
